
<template>
	<div class="message-box__container" v-if="showCopyPopup">
		<copy-password :showPopup="showCopyPopup" :orderInfo="payResult" :price="finalPrice" @changeShowCopy="changeShowCopyFun"></copy-password>
	</div>
</template>

<script>
import CopyPassword from "./CopyPassword.vue";
export default {
  props: {
    payResult: {
      type: Object,
      default: () => {}
    },
    finalPrice: {
      type: Number || String,
      default: 0
    }
  },
	data() {
		return {
			showCopyPopup: false,
		}
	},
	components: {
		CopyPassword,
	},
	methods: {
		hideBox() {
			this.showCopyPopup = false
		},
		showBox() {
			this.showCopyPopup = true
		},
		changeShowCopyFun(val) {
			this.showCopyPopup = val
		},
	}
};
</script>